home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / dflat_r_.arc / MAKEFILE < prev    next >
Text File  |  1991-10-02  |  4KB  |  111 lines

  1. #-------------------------------------------------------------------
  2. #                   D - F L A T   M A K E F I L E
  3. #-------------------------------------------------------------------
  4.  
  5. all : memopad.exe huffc.exe
  6.  
  7. #-------------------------------------------------------------------
  8. #  Set MSC = 1 to compile with Microsoft C
  9. #  Set BORLAND_CPP = 1 macro to compile with Borland C++ 2.0
  10. #  Set TURBOC = 1 to compile with Turbo C 2.0
  11. #-------------------------------------------------------------------
  12. MSC = 0
  13. BORLAND_CPP = 0
  14. TURBOC = 1
  15. #------------------------------------------------
  16. # NOTE: Set DRIVE to match where you installed your compiler
  17. #------------------------------------------------
  18. DRIVE = c
  19. #-------------------------------------------------------------------
  20. #  Delete the TESTING macro to eliminate the D-Flat Log and the Reload
  21. #  Help file selection on the Help menu
  22. #-------------------------------------------------------------------
  23. TESTING = TESTING_DFLAT
  24. #-------------------------------------------------------------------
  25.  
  26. !if $(MSC) == 1
  27.  
  28. #------------------------------------------------
  29. #  Microsoft C 6.0
  30. #------------------------------------------------
  31. MODEL = L
  32. #------------------------------------------------
  33. # NOTE: Delete the DEBUG and LINKDEBUG macros to 
  34. # build without debugging information in the .EXE
  35. #------------------------------------------------
  36. DEBUG = /Zi
  37. LINKDEBUG = /CO
  38. COMPILE = cl $(DEBUG) /DMSC /D$(TESTING) /c /W4 /Gs /A$(MODEL)
  39. LINK = link $(LINKDEBUG) /ST:8192
  40. #------------------------------------------------
  41.  
  42. !endif
  43.  
  44. !if $(BORLAND_CPP) == 1
  45.  
  46. #------------------------------------------------
  47. #  Borland C++ 2.0
  48. #------------------------------------------------
  49. MODEL = l
  50. #------------------------------------------------
  51. # NOTE: Delete the DEBUG and LINKDEBUG macros to 
  52. # build without debugging information in the .EXE
  53. #------------------------------------------------
  54. DEBUG = -v
  55. LINKDEBUG = /m /v
  56. #------------------------------------------------
  57. # NOTE: Temporary file space
  58. #------------------------------------------------
  59. HEADERS=f:\temp\tcdef.sym
  60. #------------------------------------------------
  61. # NOTE: use bcc if you do not have extended memory
  62. #------------------------------------------------
  63. COMPILE = bccx $(DEBUG) -D$(TESTING) -c -d -m$(MODEL) -H=$(HEADERS)
  64. LINK= tlink $(LINKDEBUG) $(DRIVE):\borlandc\lib\c0$(MODEL) 
  65. LIBS= $(DRIVE):\borlandc\lib\c$(MODEL)
  66. #------------------------------------------------
  67. !endif
  68.  
  69. !if $(TURBOC) == 1
  70.  
  71. #------------------------------------------------
  72. #  Turbo C 2.0
  73. #------------------------------------------------
  74. MODEL = l
  75. #------------------------------------------------
  76. # NOTE: Delete the DEBUG and LINKDEBUG macros to 
  77. # build without debugging information in the .EXE
  78. #------------------------------------------------
  79. DEBUG = -v
  80. LINKDEBUG = /m /v
  81. COMPILE = tcc $(DEBUG) -D$(TESTING) -c -d -m$(MODEL)
  82. LINK= tlink $(LINKDEBUG) $(DRIVE):\tc\lib\c0$(MODEL) 
  83. LIBS= $(DRIVE):\tc\lib\c$(MODEL)
  84. #------------------------------------------------
  85.  
  86. !endif
  87.  
  88. .c.obj:
  89.     $(COMPILE) $*.c
  90.  
  91. memopad.exe : memopad.obj window.obj video.obj message.obj             \
  92.               mouse.obj console.obj textbox.obj listbox.obj            \
  93.               normal.obj config.obj menu.obj menubar.obj popdown.obj   \
  94.               rect.obj applicat.obj keys.obj sysmenu.obj menus.obj     \
  95.               editbox.obj dialogs.obj dialbox.obj button.obj           \
  96.               fileopen.obj msgbox.obj helpbox.obj log.obj lists.obj    \
  97.               statbar.obj decomp.obj htree.obj
  98. !if $(MSC)
  99.     $(LINK) @memopad.lnk,$*,$*;
  100. !else
  101.     $(LINK) @memopad.lnk,$*.exe,$*,$(LIBS)
  102. !endif
  103.  
  104. huffc.exe : huffc.obj htree.obj
  105. !if $(MSC)
  106.     $(LINK) huffc htree,$*,$*;
  107. !else
  108.     $(LINK) huffc htree,$*.exe,$*,$(LIBS)
  109. !endif
  110.  
  111.